.. _MFPMediaPlayer_SetVideoSourceRect: ================================= MFPMediaPlayer_SetVideoSourceRect ================================= Sets the video source rectangle. MFPlay clips the video to this rectangle and stretches the rectangle to fill the video window. :: MFPMediaPlayer_SetVideoSourceRect PROTO MediaPlayer:DWORD, pnrcSource:DWORD **Parameters** * ``MediaPlayer`` - A pointer to the Media Player (`IMFPMediaPlayer `_) object. * ``pnrcSource`` - Pointer to an `MFVideoNormalizedRect `_ structure. **Returns** TRUE if successful or FALSE otherwise. **Notes** The upper-left corner of the video image is (0, 0). The lower-right corner of the video image is (1, 1) If the source rectangle is {0, 0, 1, 1}, the entire image is displayed. This is the default value. **See Also** :ref:`MFPMediaPlayer_GetVideoSourceRect`